FROM openjdk
ENV TZ='Asia/Shanghai'
ADD target/spring-cloud-eureka.jar /home/server/app.jar
VOLUME /home/server
ENV JAVA_OPTS=""
EXPOSE 8080
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /home/server/app.jar" ]